import request from '@/utils/request'

// 查询商家联系电话列表
export function listTel(query) {
  return request({
    url: '/system/tel/list',
    method: 'get',
    params: query
  })
}

// 查询商家联系电话详细
export function getTel(id) {
  return request({
    url: '/system/tel/' + id,
    method: 'get'
  })
}

// 新增商家联系电话
export function addTel(data) {
  return request({
    url: '/system/tel',
    method: 'post',
    data: data
  })
}

// 修改商家联系电话
export function updateTel(data) {
  return request({
    url: '/system/tel',
    method: 'put',
    data: data
  })
}

// 删除商家联系电话
export function delTel(id) {
  return request({
    url: '/system/tel/' + id,
    method: 'delete'
  })
}
